// TypeScript file
class ScoreView extends egret.Sprite
{
    private showScore: SpecialNumber;
    constructor()
    {
        super();
        this.initView();

    }

    private initView(): void
    {
        let scoreMc: egret.Bitmap = ResourceUtils.createBitmapByName("sorceMc_png");
        this.addChild(scoreMc);
        this.showScore = new SpecialNumber("number-");
        this.showScore.x = scoreMc.width + 10;
        this.addChild(this.showScore);
    }

    public setValue(score: number = 0): void
    {
        this.showScore.setValue(score + "");
    }
}